
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import store from './store'
import guaModal from '@/components/gua-modal/gua-modal.vue'
import concernBanner from '@/components/concern-banner/concern-banner.vue'
import qrcodeModal from '@/components/qrcode-modal/qrcode-modal.vue'
import yipuLogo from "@/components/yipu-logo/yipu-logo.vue";
import _ from 'lodash';
import lunarPicker from "@/components/lunar-datetime-picker/lunar-datetime-picker.vue";
import areaPicker from "@/components/area-picker/area-picker.vue";
import myProgress from "@/components/my-progress/my-progress.vue"
import noVip from "@/components/no-vip/no-vip.vue"
import activityBox from "@/components/activity-box/activity-box.vue"
import activityBanner from "@/components/activity-banner/activity-banner.vue"
import activityPop from "@/components/activity-pop/activity-pop.vue"

Vue.prototype.$_ = _;
Vue.prototype.$store = store

Vue.config.productionTip = false

App.mpType = 'app'

// 64卦选择
Vue.component('gua-modal', guaModal);
// 关注banner
Vue.component('concern-banner', concernBanner);
// 关注二维码弹窗
Vue.component('qr-modal', qrcodeModal);
// logo组件
Vue.component('yipu-logo', yipuLogo);
// 活动配置
Vue.component('activity-box', activityBox);
Vue.component('activity-banner', activityBanner);
Vue.component('activity-pop', activityPop);
// 时间和地区选择器
Vue.component('lunar-picker', lunarPicker);
Vue.component('area-picker', areaPicker);
// 八字结果组件
Vue.component('my-progress', myProgress);
Vue.component('no-vip', noVip);

export const EventBus = new Vue()
const app = new Vue({
  store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif